If you move the console log inside the apply, does that do what you expect?
s
If you move the console log inside the apply, does that do what you expect?