fixed scroll timing issue