Fix errors when "self" keyword is present in interfaces