Fixed bug for tabbing