Fixed model class resoultion when string representation given.