fixing another small bug in signature handling