Correct an error due to an inexistent variable