Fixed bug with printing homework