fixed bug in models on update