Fix: data variable used instead of $scope