diff --git a/opentech/static_src/src/app/src/components/GroupedListing/index.js b/opentech/static_src/src/app/src/components/GroupedListing/index.js
index bd796df960a714afc24048d18b7e491dca0d561d..2acca6fd47cc7bc92dc384b3c4d764362a02fd45 100644
--- a/opentech/static_src/src/app/src/components/GroupedListing/index.js
+++ b/opentech/static_src/src/app/src/components/GroupedListing/index.js
@@ -131,7 +131,8 @@ export default class GroupedListing extends React.Component {
 
         // set css custom prop to allow scrolling from dropdown to last item in the list
         if (this.listRef.current) {
-            document.documentElement.style.setProperty('--last-listing-item-height', this.listRef.current.firstChild.lastElementChild.offsetHeight + 'px');
+            console.log(this.listRef.current);
+            document.documentElement.style.setProperty('--last-listing-item-height', this.listRef.current.lastElementChild.offsetHeight + 'px');
         }
 
         return  (