Fix sign document exception