Fix line number toggle function