Fix failed usage of "self"