fix bug in geenrating response signature