xlocalize: Fix variable scope error