fix bug of SampleForm