fixed tuple elimination bug