fix mem vs volume bug