Fixed "undefined pruneOld" error