remove duplicate message from map removing