fix a little code error in demo form