Fix reading incorrect value