Fixed a bug in the __call__ method of Simulation