Fixing the prune endpoint