workaround ldc bug.