[FIX] main_id not defined