fix bug: mem outage problem