Fix logic in is_active