fix association and remove element