correction bug bouton record + amelioration code