fix print_motd bug