Added a check to important variable, as experienced in issue 46.