Fix the position of `end`