fix form io. Fixes #668