fix #24482: ties broken on repitch