fix date type bug