Fixed bug where exception class was not properly referenced