fix assignment to equality conditional