Fixed error on usage of __self__