fix undefined mixArray var by setting it to nothing