diff --git a/templates/accountProfiles/valid-accounts.php.tt2 b/templates/accountProfiles/valid-accounts.php.tt2
index bc06290a9db487ad3ff4f80e84b0210ef681c7fd..5760178fe1f4e9521fa72ad8974eefd1e58b415e 100644
--- a/templates/accountProfiles/valid-accounts.php.tt2
+++ b/templates/accountProfiles/valid-accounts.php.tt2
@@ -13,7 +13,7 @@ $validTestAccounts = array (
 	'[% attribute.key %]' => array('[% attribute.value.join("','") %]'),
    [% END %]
   [% END %]
-        'associatedSP' => "${account_sp_entityid}",
+        'associatedSP' => "[% account.get('sp_entityid') %]",
 
   ),