Fixed some state machine issues in monitorValues