theres luck. fix array copy bug