Fix a time bug