Fixed bug on timecheck