After more testing, it seems that the first solution is wrong too. I am now working on the second one however.