If this function works properly on default config that means the problem is in your config
But WHAT is the problem though ?
How does this happen to begin with ?
Have you ever encountered this issue ? And has anyone successfully dealt with it ?
Because let's be honnest here, what you are telling me to do is pretty close to "start over, and let's see if it works then".
You guys really are PR aces. It's like communicating with brick walls.