Fixed Purge Graph Infinite Loop