Fix hxsurf so that vertices remain the same after a read-write cycle