fix wrong exceptions