media and location id fix