error on entity rg