Sidebar fix code