fix title bar bug