Fix bug on refresh commande