Fixed bug pointing to base class rather than parent.