diff --git a/nipap-www/nipapwww/public/controllers.js b/nipap-www/nipapwww/public/controllers.js
index <HASH>..<HASH> 100644
--- a/nipap-www/nipapwww/public/controllers.js
+++ b/nipap-www/nipapwww/public/controllers.js
@@ -1046,7 +1046,7 @@ nipapAppControllers.controller('PoolEditController', function ($scope, $routePar
 
 		// Mangle avps
 		query_data.avps = {};
-		$scope.prefix.avps.forEach(function(avp) {
+		$scope.pool.avps.forEach(function(avp) {
 			query_data.avps[avp.attribute] = avp.value;
 		});
 		query_data.avps = JSON.stringify(query_data.avps);
www: Fix edit pool page

Fix bug in add pool page which prohibited changes from being saved.

Fixes #<I>