fix for tab disabling broke tab switching when it's in count layer mode