bugfixes on loc field