fix association detection