Just came across this bug and duplicated it twice over.
If you have Task and Programs in the same control logic program, do this:
Open the $Main program like you going to edit it, but you don't need to select Edit Mode.
Select a Task and open it for editing.
Next open one of the Programs for editing.
Now go to the Task and select any of the control relays and open XRef.
Double click one of the cross-references in XRef and see where it goes.

Remember, open the Task before the Program.
It won't do it if the Task is opened after the Program.
One other thing, it won't do it on every instruction in the Task.
It's kind of iffy.