fix time moudal bug