Fixing segfault caused by exception path naming.
Fixing exceptions.