[BUG #8028] Fixed bug with accessing the class during definition.