Corrected the check for Ln and Ls