Face meet palm.

1. Admit defeat
2. Show code to other people
3. Instantly see the error yourself.