Remove flickering in sidebar