fixed bug in model name setting