Basically, you have a simulation of electric fields (in my case its simple plates with 2000v potential)
Magnetic coil
Now, here I had found that original code has same issues. No matter what I did could not make electron focus in some place. From theory for electron movement it should make helix movement with predefined radius.
The problem (IMHO) is that FEMM simulator is only XY, no Z plane. The magnetic filed force electron to move to Z plane. Although the author deal with it, movement should be updated in around the axis manner.
Luckily, in Python there is a library (BorisIntegrator from plasmapy.simulation.particle_integrators) for movement of electron in magnet + electric field.