Bugfix variable calcul