Fix crash in user pruning