Fix datatype mismatch causing contains() to fail