cover more cases of empty modes set