Bug fix about the pinned tab