Fix crash in Magnetic Flux