fix empty case