Fixing issue that could occur with scroll positions after a reset