Fixed some bugs in submission assignment.