Loader resource leak fixed