Fixes to the print source code