Fixes ng-bad