Fix for date directive when no nested scopes