fix apply second arg must be array
Merge pull request #1 from pepoviola/master

fix apply second arg must be array