fixes clearing of inputs (broke last week), closes #586