Fixed slight problem with the wrong selected tab