Fix mem_used