Fix problem with non-existent variable