Fix bugs with the panels tabs