model mutliinstantiate bugfix.