correct displaying of the targeted messages

fixes #879