Fix missing location code