fix bug with signatures