Fix Record.__contains__