fix arrays