Fix session error while applying signature settings - thanks Mstcool for reporting

Signed-off-by: emanuele <emanuele45@gmail.com>