fixes issue with time differences