bug fix for tabs