Fixed problem with reset and set state in Submit module