Fix error if model type 'object' was requested