Repair of map activity code