bugfix in lsa.pl and lsa.target.pl