It helped in some cases to put a piece of cardboard under the outlet so the spray foam would stay in place.
Δ
Blog at WordPress.com.