[bug] fix tab index movement, closes #1