Fixed bug that messed up tabs