Fixed logic error.

Closes #9.