Fix support for custom formatters