I'm a moron

It was a fulty if-statement