fix form setType()