Fixed bug, that time t was preceeding start of a task