bugfix: set 'ready' state for Core, even when no match is found
bugfix: state internal counter now works (before fix it was holded on 0)