Fixed bug #3 on GitHub.