fixed a print issue with toString