Bug introduced when turning the condition around