Fixing location code setter