fix for exception processing