Fix a bug in submitting an answer