Attempted to fix permutation issue