fixed dynamic unload issue