Just an if-statement fix.

Saw this and assumed this is what was intended.