Fixed erroneous Contains method