Fix array comparison