Fixed a bug in adding a submission for a user.