fixed behaviour of anyof and allof