Fixes scroll events