fix compile for modules with no import