Solve title end problem