fix used swap and mem