Fix boundary issue.
Fix missing argument.