Fixed problem with url on leaddata corrupting
Check visible rather than length