add proper sampling index and fix open rates init