fix bug in toString(tag part)