Fixed issue #321.