fix encrypted field