fixed minor bug affecting the saving of the submissions