added invalid model state dictionary exception