Fixing a bug in map <-> LOS -mapping