Variable with wrong name - how have I only just noticed this now!?