Removed non-const reference local variable in read_check_state.