keep active_id null if empty