Fixed contains method of dictionary