fix multiple entries for apikeys in config.ini after restart