fixed continuation handling

continuation is called only if given functor is invoked