Isolated the problem with example 3, still working on a solution