fix bug in header and init ng-grid