Fix bug where sticky element does not reset after resizing content