basic fixed for ticket #319
added missing throw