fixed bug in counting hours