solved the model association bug