[Closes #41] Fixed bug.