fix leakCheck