wrong writer to tostring for the error