bugfix tab selection