Fix datepick invalid event fireing