fix error on set creator id and angularjs scope.apply