Fixed shift-tab bug

Fixed bug in shift-tab functionality.