Fixed Scramble function
residue commit