move invalid configured global keys to local keys