Fixes ngdirective.