Fix config.secret_key failure