adds missing && in condition