fixed bug in tabs plugin