Fixed github issue #157.