fix the bug of speed