fix bug in time comparison where compared Time to integer