fixed some missing derefs and next pointer for failed refs