@DonManfred 
One can reproduce the behaviour with a new project (main plus additional code module):
The code module ist called "FirstGivenName"
After the first compile I renamed it:
I clicked on "Clean project" and did a new compile:
*.b4r file:
	
	
	
	
	
	
	
	
	
		Build1=Default,B4RDev
Group=Default Group
Library1=rcore
Module1=[B]AfterRename[/B]
NumberOfFiles=0
NumberOfLibraries=1
NumberOfModules=1
Version=4
@EndOfDesignText@
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder: ide://run?File=%WINDIR%\System32\explorer.exe&Args=%PROJECT%\Objects\Src
Sub Process_Globals
    Public Serial1 As Serial
    
End Sub
Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    AfterRename.TestSub
End Sub
	 
	
	
		
	
 
I still need to manually delete the corresponding temp files to get all things right