fix secret key error