Fixed IS_BEGIN_TUPLE and usages.