Fixed issue 1198.