run garbage collector after switching branch back