Fix the bug when adding icon before/after existing title