fixed newly introduced orrbm sampling index bug