fix array compare