Fixed stupid elem bug