fix bug in assoc.