fixed bug with contentPanel