fix print bugs