I’m not sure why this could happen… Maybe @ptrblck has an idea?
What I would do is to remove part of the code until you don’t see this behavior anymore to pinpoint what is causing this. Sorry for the not so useful answer