Solved it by following solution on this thread: https://colorlibsupport.com/t/sticky-header-not-sticking/