Fixing bounce on resize.