fix #77 (obscure Tk error)
replace deprecated contains with in