Fix bug of strideaverage