Fixed issue #1072.