reset sign variable in format loop

should fix #30, please review
Merge pull request #35 from arose/patch-1

reset sign variable in format loop