writeForm fixed