Fixed issue #316.