Fix move-tail-to-head to reindex properly