fix signature genetation