Trouble working with 'load_current_value'

I'm hoping somone can help me:
I have a load_current_value block that always returns up-to-date!

  matchy_version = 'Not Installed'
  reg_versions(desired.version).each do |registry_version| # an array of versions and releases that might be found int he registry for the version number
    node['application']['versions'].each do |installed_version| # an array from a custom ohai that finds the application's currently installed versions and release numbers
      matchy_version = desired.version if installed_version.match(/^#{registry_version}/)
    end
  end
  version matchy_version
end

When no match is found for installed_version.match(/^#{registry_version}/) it leaves matchy_version as 'Not Installed, but the resource still shows up to date
with some puts in there, I have output like this:

Recipe: cookbook::default
         * application[4.6.1] action install
       Comparing installed version: 4.7.02053 with the registry data: 4.6.1
          Not a match

       Comparing installed version: 460805 with the registry data: 4.6.1
          Not a match

       Comparing installed version: 4.0.0.0 with the registry data: 4.6.1
          Not a match
       desired.verision: 4.6.1
       matchy_version: Not Installed
        (up to date)