fix arrays equal bug