fix message comparing