So it is not that interesting , as apperently the error is unrlated.
I mistakenly did caching of arguments in this case, and the cache would only work for def functions.
def
That is why the second time I called it, the flow was different.