comparison time bug fixed