Fixed crash on world gen