correct next pointer