Corrects problem in message output