fix RTEs when loading a sim