[core] Fixed wrong change of continuation
Merge pull request #136 from michael-k/bugfix

Fixed wrong change of continuation