fixed bug when search sidebar was crashing after "remove" action