fixed prevState bug in imvvmModel

prevState was returning model and not state