Fixed issue 1289.