Help with sticky scroll going too far

Hi i have an issue that I can’t work out, sometimes it does it and sometimes not. But essentially I am able to scroll too far past the Top Bar element and also the bottom of the page, when using the sticky feature… any ideas greatly appreciated!

Thank you

Ben