Fixed a bug causing multiple subtabs to appear