I missed the (2) on there. Like said earlier you need another If Test to make sure that there is at least 2 tabs for that to not return an error