Fix issue where title bar doubles itself.