Fixed missing condition