fix bug in is_ll