Fixed desired time bug