Fix in profiles restore script. Thanks @Alucard24