fix autoreference