Fixing exceptions

Exception created, not thrown.