Fix bug with private message handlers