Fix no result exception.

Closes #12