Fix array containment bug