JL: still buggy. don't have time to fix now

For some using the pmute function doesn't work. We get the right number
of points, but they are not in the correct columns.