Correct id's based on relative uri and mandatory fix