Remove redundant and wasteful dom call