Fix bug where middle initials were incorrectly used in reference