fix offline compile