fixed a wrong raise statement