Fix bug in time time scanner