fixed speed bug.