Fixed partial compilation bug

Partials were getting compiled because of a logical error.