Fixed bugs in expanding/collapsing result list