Fixed issue #107
Bug was introduced in commit 518a7d7a70f21eea930c7e5d04eddd6cc3681533