bugfix has_time