fix misuse of ==