fixed bug with TitleJPanel