Fixed the several tabs bug