updated the eventhandler to not crash the world on load