Fixed compile with deactivated modules