Fix reversed logic from 1d60dc3fde1056479b.