[activeline addon] Optimize

Issue #2007