Fixes issue with gravity well against electrostatic field

Fixes issue #338.