fix ref when compiling language module