fix weird argument check.