fixed problem to create signature