If the a sub name preceded by "Sub" is included in a comment that is located before the actual Subs position in the code the link in the modules tab will take you to the comment, not the actual sub.
B4X:
' The sub Asub definition is wrongly linked to here in the modules tab
...
Sub ASub
End Sub