Corrected leaked resources.