Bug fix magma spawn.