fix part of ldc-developers/ldc#651
Merge pull request #12 from Trass3r/ldc

fix ldc-developers/ldc#651