fix message counts