Fixing rendering of sidebar