fix invalid dom

https://www.openproject.org/work_packages/16277