fix resource leak bug