fix leaking time