fixing issue in encrypting callback