fixed issue with pruning location list