fix for ng-grid publishing problem