fix for ldg