Fixed bug in world simulation