Fix error alert for generate new api key