Fix memory bug in reordering.