CFRG check invalid type