edit: fixed
It would be nice to keep the original problem statement and add the solution, so that the next person who runs into the same issue can solve it from your hard work.