fixed speed bug in weird way