Fixed issues with DOM construction and modifications