Fixed issue #307.