Fixed error returning current time interval