fixed issue on DOM undefined node (cgi error)