fix update many to many relationship