fix model num check