bug fix: replace "this" by "self" in UI class.