Fix ng-dirty issue