fix some bug, the form can save now