fix type/method/enctype confusion