Fix speed assignment.