fix exception, closes #11