fix exception constructor call