Was calling getElements instead of Element