fixed issue identified by #2