Fixed error checking when listing references