Fixed issue #308.