fixed flag submission error