I've been trying to figure this one out for a while now and I think I know which part of the code is causing it.
Though I haven't been able to recreate the bug so it's a bit hard to figure out why it's happening.
But thanks for including your system specs. It helps a lot.