fix updating of model contexts in query init code
Merge pull request #20 from codeparty/master

fix updating of model contexts in query init code