Fixed a bug where methods of base classes would not be resolved.