Fix sidebar rendering issues