You have to be really really disciplined in pruning it as soon as the flowers are over. cut off most of the new growth, don't cut into the old wood. lavender doesn't live long anyway, as much as you try, it will get leggy and need replacing eventually