Correct exception if no lign selected.