fixed bug in lain.php