Fix the wrong application of rebase.