fix to random association
fix problems