Fix support for custom formatters
Merge pull request #132 from alco/formatter-fix

Fix support for custom formatters