Update simulator.java

Fixed the ROB bug