[frontend] Fix some issues when we're cloning a new assignment.