Its a well known bug (see bugs.typo3.org for more information). Meanwhile you can install the extension ch_is_templates on top. It fixes this bug (and some others, too) and you can format the output with HTML-Templates, too.