fix memb_size bug when no memory availabe, should return 0.