checkParamNames: fixup buggy behaviour