Fixed magma.f90