fixed error in time-management - now working :)