missing condition - bug fix