fixes bugs in world#set_bounds