Fixed a DOM error