fixed broken message output