Fix array comparison
Remove debugging code