fix default value for date directive