fix exception warning