fixed time reading bugs