Index: sites/all/modules/popups_reference/popups_reference.module
===================================================================
--- sites/all/modules/popups_reference/popups_reference.module	(revision 1431)
+++ sites/all/modules/popups_reference/popups_reference.module	(working copy)
@@ -93,8 +93,7 @@
     if ($links) {
       // Put the nodereference widget and links in an wrapper.
       // Makes it easy to find for Ahah targeting, and popups_reference behavior selecting.
-      $form[$key]['#prefix'] = '<div id="'. $wrapper_id .'" class="popups-reference"><div class="add-new-link"><div>Not found? ' . implode(', ', $links) .'</div></div>';
-      $form[$key]['#suffix'] = '</div>';
+      $form[$key]['#prefix'] = '<div id="'. $wrapper_id .'" class="popups-reference"><div class="add-new-link"><div>Not found? ' . implode(', ', $links) .'</div></div></div>' . $form[$key]['#prefix'];
     }
   }
 }
