Hey @bonnell, thanks for the answer.
I don’t think that problem is in that particular code sample, but inside the framework itself, because I noticed bug in my project which doesn’t use that sample code.
Anyway if you make some kind of fix, please let me know here, thanks.