bag fix in is_integer