fix a missing condition