fixing an associated object bug