Fixed array index error for "npm exec"

I honestly have no idea how my tests seemed to indicate that it worked.

No. Idea.