Fix "Argument 5 must be an array" issue.