`%` is wrong, only axes in `[-ndim, ndim)` are valid.