Fixes bug when monitoring swap memory.