bug fixes in creatig signature