Minor change for reorder_keys length checking.