1. Add more info to trace potential bug and avoid crash 2. use correct permutation size to do `column->permute`