fix secure keys