Fixed issue #1067.