api key saving fix