fixed bug in world.c