fix datepick bug