fixed bugs in formatters