fix exception being thrown when everything works

*facepalm*

fixes #25