fix bugs of form command