also fix the lease time: it should be the time in seconds that the lease lasts (cherry picked from commit cded6d51)