Fixes a missing reference to a variable