Fixed a bug where input forms were not correctly handled.