Fixed incorrect attribute assignment.