fix access analysis in prune