[fix] fixed the cmp instead of the assingnment