fixed bug with setting current time