Changed entityid to gettype.gettypeid