fix DOMException access