fix the project unload issue