Fix printouts bug