fix for issue #300