fix model name detection