fixed bug with title bar