Dammit, its what I get for coding half asleep.