Fix custom format bug.
Merge pull request #6 from kylerush/krush/bugfix

Fix custom format bug.