exception on rendering form with file field fixed