fix the errors in last minute reading