fix missing self definition