cannot read property Model of undefined