bug fixes opening XML, collapsing node Exceptions