Changed simulator.h, pretty sure to fix it