Fix type assignment.