minor fix to the "prepareDOM" initializer.