Fixing converting arrays.