Fix bug in contains