Fix conditional in throw