fixed truncated message output