Fixed bugs in many-to-many relations. Example improved