Fix bug clearing api key after mod updating