Fixing the double run bug.