fix call to unload