fix map_chip/index