Fixed issue 1266.