Fixed a speed bug