fix for 500 when the submission is wrong