fix empty condition