Fixed a class cast exception that still displayed properly because of
base.