bug in in_element