Fixed conditional testing to see if localizations have already been applied. Defect was introduced in last commit.