Comparison fix for array list