fix invalid self variable