Fix advanced condition