getmodel fix for Exportcontroller

The getmodel function was not using the correct parameters, was giving
an error. Added the config array and the error is gone.