Fix index in tabstrip

Fixes #498