fixed logging error in crypto