fix the bug of displaying current time