Fixed a resource leak bug