Fix time check