the `allowedType` is static now and it works, but still got my form issue.