Remove invalid buffer swapping.