fixed dtype=int32 error in permutation arrays