fixed bug for centering coordinates when using constant electric field 2