Correct reference to non-static value in main.