Membership Contribution

I'm trying to enter in a contribution that triggers a membership.  I can put in the pledge and schedule the payments and if i click on the membership tab it has changed the patrons level and expiration correctly.  The problem is that it also has a matching gift and when I click on the matching company under the matching/credit tab i get an error that reads Invalid Membership Amount: This amount returns no level and there is no current membership to upgrade.  If I just click OK the matching amount still shows up but there is no longer any usable information under the membership tab.  It shows all the past activity (level, expiration, active, inactive) and there is his latest membership as active but not updated to reflect the gift I'm trying to put in.  Know that was long but any help would be appreciated.