"System.ArgumentException: An item with the same key has already been added." on Hot Reload

When I try to hot reload the project from visual studio by building it I get this error. Other solustions related to this error didn’t help.

1>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Build started: Project: RoomEditor, Configuration: DebugGame_Editor x64 ------
2>  Compiling game modules for hot reload
2>EXEC : error : System.ArgumentException: An item with the same key has already been added.
2>     в System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
2>     в System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
2>     в UnrealBuildTool.UnrealBuildTool.PatchActionHistoryForHotReloadAssembling(List`1 OnlyModules)
2>     в UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments, FileReference ProjectFile)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3075: The command ""C:\Program Files (x86)\Epic Games\4.12\Engine\Build\BatchFiles\Build.bat" RoomEditorEditor Win64 DebugGame "C:\Users\DreamVR2\Documents\Unreal Projects\RoomEditor\RoomEditor.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.

If I compile the project from the editor there won’t be an error the next time the project is built from the visual studio. But this error reappears after that anyway.

the problem was solved in 4.14