fix for issue #40

fix for https://github.com/danilop/yas3fs/issues/40