fixed bug with nested signature