Fix psm number comparison.