Fixed loading a program in the simulator