fix #29

See issue #29