fix array comparison operator