Fix for method injection.