fix array pointer change