tabs.goto 8 goes to last tab

Fix for #1193