Fix sign overwrite issue

References #64.