Fixing sample count.