Fixed bug when creating new assignments.