fix a distribution bug in varray and fake_varray