On the rigidity theorems of Witten