Fixed some printstream issues