Unload: fixed missed bug of the bug. Fixes #2174.