fixed issue described in #10