Fixing bug with bugfix :)  sampleDict being referenced before assignment