fixed secret key issue