Use angular.bind to fix some scope errors