fixed the issue when downloading profiles