Fix typo in localize check