re-fix bug validate date