fix issue #123, made mistake in commit latest commit 68a316ecce