fix expected exception