Fixed bug in contains.