Fixes duplication of tabs bug!