Fixed invalid prune error