fixed bug with title bar overlapping