fix bug in contains