fixed null pointer in message merger