fixed bug with storing lease