retrieval of visible element cgi bug fix.