Fixing wrong variable reference.