fix part of ldc-developers/ldc#651