fixed nav bounce with some really awesome math!