fixed bug with associations update