fixed bug with wrong time displaying