Corrects failing variables