bug fixes for deleting assignments.