updated to new hxdom; fixed #1