fixed a scrolling timing issue with pattern