Fix strange array bug in node webkit