fix mem and swap graphs