updated scrollspy value, stops nav flickering