fix array comparason