fix exception namespace issue