fixed error in tab selector