Fixed a bug in getModel method which returns a unexpected model when value is not object