Correcting swapped values in dice helper