Fixed a max speed bug