fixed message generation problem (Nils)