fixed insert an array access value into another array