bug fix for tabs problem