Fixes several bugs in reading past input data for forms.