report fix & small change to len-func