Fixed running memory plugins logic