Fixed issue when scroll position did not updated automatically.