Fixed a bug which may cause values not being read