fix assignment comparison