fix print errors