refer to bug #1167