Fixed exception not printing