Fixed array copy problem in IE.