TypeError: Cannot read property 'joinModel' of undefined