fixed tab change bug
Merge pull request #2 from pdhar/master

fixed tab change bug