fixing form save bug