workaround for updating directives that actually works