Fixed contains() method