minor fix - issue #311