fixing bug with signature