Fixed model name resolution

Fixed an issue where the resource controller was unable to resolve
the model name