fix time region comparation bug