fix a bug in Cache.solve_membe introduced in last commit.