remove scope.apply() in sync call