reset sign variable in format loop

should fix #30, please review