Fix use of non-existing variable