Update ReferencesListener.php