Fixed a time-based error