fixed error about printing invalid form