Fix scrollspy for models