Fixed issue where simulation might crash on load