Fixed performance bug.

Silly me commiting early-morning-before-coffee code with silly
conditions always evaluating to true.