Fix stack overflow in IntMap version.