Fix referenced variable