bugfix in signing