Fix ArrayOutOfIndex exception when in underground mode