fixed overflow issue for signature