bugfix: multiple instances of the same model in mapped relations