fixed invalid line for idMapID and added check for shadowID map