Fixed stupid mistake in exception handler