#14 reproduced
fixes #14 exception throwing corrected