fixed bug creating signatures