fixed bug in leaseparsing