Fix use of non-existent variable