fixed a bug where switching groupings would break scroll to code