Fixed silly inverted logical error.