Fix definitions of print methods.