fix submit check