fix: panic at `reducePow`

closes #4947
2 files changed