fixed custom lm issue in compilelm task