Made LDS loader slightly more robust