fix apply second arg must be array