Fixed bug when after deleting something in localindex - adapter was recreated and all open categories was closed