Fixed contains method