10 hours of debugging later, decided there was no bug