Fixed getModel not returinng a model.