diff --git a/apachesolr.index.inc b/apachesolr.index.inc
index f33d52d..f5fa25a 100644
--- a/apachesolr.index.inc
+++ b/apachesolr.index.inc
@@ -252,7 +252,7 @@ function apachesolr_index_send_to_solr($env_id, $documents) {
  *
  * $text must be stripped of control characters before hand.
  */
-function apachesolr_index_add_tags_to_document(&$document, $text) {
+function apachesolr_index_add_tags_to_document($document, $text) {
   $tags_to_index = variable_get('apachesolr_tags_to_index', array(
     'h1' => 'tags_h1',
     'h2' => 'tags_h2_h3',
