Use correct context for Element constructor