fix incorrect unload