Fix elemet.resolve is undefined