fix a bug in contain