The issue was already closed. It was in the end inside the code not with trimming optimization. I found it and fix it.