Bug fix to time printing