Corrected pointer exchange