Yes.
And did you read carefully my previous answer?
I could not ignore anything in program code (as serious programmer).
If You could be so kind to post two files with difference only in code that changes behavior, then maybe I'll have enough time to try to look for a solution.
I do not have time to do searching for a same function in two totally different files and do analyzing if something is affecting final result or not.

P.S.
I was in hospital for some time and was not able to answer this.