strip out unused arg, fix #7964