ORB #8 keeps reseting the number of lock mechanism

I have been trying to solve the Rat puzzle since yesterday. Every time I get to the third lock, the message in the machine resets the number back to 7. Please help.