Fixed bug with bad time handling.