Fixes wrong locale variable code