fix issue with flickering sidebar when touching footer in treaty page