Fixed bug in exception handler...stupid