Fixed incorrect calls to compare_arrays