Fix calling of undefined method if not declared.