Fix a bug when signature is invalid.