fix issue with comments getting cut off when printing