Troubleshooting use of custom directives