fixes bug in motifs (tried to get double values from long distr)