fix embedded variable in message string