fix model primitive count overflow