fix exception handler setting