Fix of incorrect variable initialisation