fixing bug where string model name inputs would throw exception