fixed error where all the tabs where captured although "captureVisiblePart" was triggered.