fix bug for current time