fixed bug with multiple instances of same model